package question5;

public class Worker extends Person {
    private String workID;

    public Worker() {
    }

    public Worker(String workID) {
        this.workID = workID;
    }

    public String getWorkID() {
        return workID;
    }

    public void setWorkID(String workID) {
        this.workID = workID;
    }
    @Override
    public void eat(){
        System.out.println("吃工作餐");
    }
}
